package com.laobiao.file_netty_lib.exception;

public class FileBaseException extends RuntimeException{
    /**
     * 参数错误
     */
    public static final int ERR_PARAM_WRONG=1;
    /**
     * 参数为空
     */
    public static final int ERR_PARAM_NULL=2;
    /**
     * 不可预知异常 unpredictable
     */
    public static final int ERR_UNPREDICTABLE=3;
    
    /**
     * 错误代码
     */
    private int errCode=1;

    public FileBaseException(String message, int errCode) {
        super(message);
        this.errCode = errCode;
    }
    public FileBaseException(String message,Exception e, int errCode) {
        super(message,e);
        this.errCode = errCode;
    }
    
}